package server.layer;

import org.json.JSONArray;

import java.util.ArrayList;

/**
 * Created by IntelliJ IDEA.
 * User: Awake
 * Date: 24.03.12
 * Time: 18:12
 * To change this template use File | Settings | File Templates.
 */
public class JsonUtil {

    public JSONArray arrayToJson(ArrayList<Person> persons) {
        JSONArray jPersons = new JSONArray();
        for (Person p : persons) {
            jPersons.put(p.serializePerson());
        }
        return jPersons;
    }


}
